package cn.com.w.ratelimiter.service.impl;


import cn.com.w.ratelimiter.annotation.Limiting;
import cn.com.w.ratelimiter.service.HelloService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class HelloServiceImpl implements HelloService {


    @Override
    @Limiting(limitNum = 1, name = "helloFor")
    public void helloFor(String name) {
        System.out.println(name);
    }
}
